<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Projet Jetpack: Référence du fichier /home/p1006250/lif7-projet-jetpack/src/Sprite.h</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Projet Jetpack
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Généré par Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li><a href="dirs.html"><span>Répertoires</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&#160;de&#160;fichier</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_sprite_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Définitions de type</a> &#124;
<a href="#func-members">Fonctions</a>  </div>
  <div class="headertitle">
<div class="title">Référence du fichier Sprite.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="_personnage_8h_source.html">Personnage.h</a>&quot;</code><br/>
</div><div class="textblock"><div class="dynheader">
Graphe des dépendances par inclusion de Sprite.h:</div>
<div class="dyncontent">
<div class="center"><img src="_sprite_8h__incl.png" border="0" usemap="#_2home_2p1006250_2lif7-projet-jetpack_2src_2_sprite_8h" alt=""/></div>
<map name="_2home_2p1006250_2lif7-projet-jetpack_2src_2_sprite_8h" id="_2home_2p1006250_2lif7-projet-jetpack_2src_2_sprite_8h">
</map>
</div>
</div><div class="textblock"><div class="dynheader">
Ce graphe montre quels fichiers incluent directement ou indirectement ce fichier :</div>
<div class="dyncontent">
<div class="center"><img src="_sprite_8h__dep__incl.png" border="0" usemap="#_2home_2p1006250_2lif7-projet-jetpack_2src_2_sprite_8hdep" alt=""/></div>
<map name="_2home_2p1006250_2lif7-projet-jetpack_2src_2_sprite_8hdep" id="_2home_2p1006250_2lif7-projet-jetpack_2src_2_sprite_8hdep">
</map>
</div>
</div>
<p><a href="_sprite_8h_source.html">Aller au code source de ce fichier.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_ssprite.html">Ssprite</a></td></tr>
<tr><td colspan="2"><h2><a name="define-members"></a>
Macros</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sprite_8h.html#a3af35b2f3ecf099e959f98d3aaa558a5">SGN</a>(X)&#160;&#160;&#160;(((X)==0)?(0):(((X)&lt;0)?(-1):(1)))</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sprite_8h.html#adefab4344518e9d35a80d87c20c0fa48">ABS</a>(X)&#160;&#160;&#160;((((X)&lt;0)?(-(X)):(X)))</td></tr>
<tr><td colspan="2"><h2><a name="typedef-members"></a>
Définitions de type</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structs_terrain.html">sTerrain</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sprite_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structs_personnage.html">sPersonnage</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sprite_8h.html#a4270324e31f01ad8e422e586039f8263">Personnage</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="struct_ssprite.html">Ssprite</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sprite_8h.html#a024e9adfdc8e0b14345d217083886e94">Sprite</a></td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Fonctions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_sprite.html">Sprite</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sprite_8h.html#a4b649c7fe373641fefdc8c50f1170c57">InitialiserSprite</a> (<a class="el" href="struct_sprite.html">Sprite</a> *pSprite, int x, int y, int w, int h, <a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *pTer)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><b> Brief Description </b> Initialise un sprite. <br/>
  <a href="#a4b649c7fe373641fefdc8c50f1170c57"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sprite_8h.html#ac89376e6e2a55b15702b26eaac32a676">LibereSprite</a> (<a class="el" href="struct_sprite.html">Sprite</a> *)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><b> Brief Description </b> Libere la mémoire allouée.<br/>
  <a href="#ac89376e6e2a55b15702b26eaac32a676"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sprite_8h.html#ad30c5c0a1c1fc518ef81d052d549a154">CollisionDecors</a> (<a class="el" href="struct_sprite.html">Sprite</a> *perso)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><b> Brief Description </b> Test la collision. <br/>
  <a href="#ad30c5c0a1c1fc518ef81d052d549a154"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sprite_8h.html#a75aa6342b3d5192493d1daef6133be11">EssaiDeplacement</a> (<a class="el" href="struct_sprite.html">Sprite</a> *perso, int vx, int vy)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><b> Brief Description </b> Test si un déplacement est possible. <br/>
  <a href="#a75aa6342b3d5192493d1daef6133be11"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sprite_8h.html#aef762179d867febc430bff4af2267885">Affine</a> (<a class="el" href="struct_sprite.html">Sprite</a> *perso, int vx, int vy)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><b> Brief Description </b> Affine la collision.<br/>
  <a href="#aef762179d867febc430bff4af2267885"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sprite_8h.html#ac34d3c8ac9dec7b99115100381c896e6">DeplaceSprite</a> (<a class="el" href="struct_sprite.html">Sprite</a> *perso, int vx, int vy)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><b> Brief Description </b> Test si les déplacements sont possibles. <br/>
  <a href="#ac34d3c8ac9dec7b99115100381c896e6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sprite_8h.html#a519d35f4b42cc5764208777e7838e6ed">persMort</a> (<a class="el" href="struct_sprite.html">Sprite</a> *perso, int vx, int vy)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><b> Brief Description </b> Test si le personnage est mort(fin de partie). <br/>
  <a href="#a519d35f4b42cc5764208777e7838e6ed"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sprite_8h.html#affba9d86f8ae9fe08348877045147d9f">UpdateScroll</a> (<a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *pTer, <a class="el" href="struct_sprite.html">Sprite</a> *pSprite)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><b> Brief Description </b> Met à jour le scrolling. <br/>
  <a href="#affba9d86f8ae9fe08348877045147d9f"></a><br/></td></tr>
</table>
<hr/><h2>Documentation des macros</h2>
<a class="anchor" id="adefab4344518e9d35a80d87c20c0fa48"></a><!-- doxytag: member="Sprite.h::ABS" ref="adefab4344518e9d35a80d87c20c0fa48" args="(X)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="_sprite_8h.html#adefab4344518e9d35a80d87c20c0fa48">ABS</a></td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">X</td><td>)</td>
          <td>&#160;&#160;&#160;((((X)&lt;0)?(-(X)):(X)))</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Définition à la ligne <a class="el" href="_sprite_8h_source.html#l00006">6</a> du fichier <a class="el" href="_sprite_8h_source.html">Sprite.h</a>.</p>

<p>Référencé par <a class="el" href="_sprite_8c_source.html#l00075">Affine()</a>.</p>

</div>
</div>
<a class="anchor" id="a3af35b2f3ecf099e959f98d3aaa558a5"></a><!-- doxytag: member="Sprite.h::SGN" ref="a3af35b2f3ecf099e959f98d3aaa558a5" args="(X)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="_sprite_8h.html#a3af35b2f3ecf099e959f98d3aaa558a5">SGN</a></td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">X</td><td>)</td>
          <td>&#160;&#160;&#160;(((X)==0)?(0):(((X)&lt;0)?(-1):(1)))</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Définition à la ligne <a class="el" href="_sprite_8h_source.html#l00005">5</a> du fichier <a class="el" href="_sprite_8h_source.html">Sprite.h</a>.</p>

<p>Référencé par <a class="el" href="_sprite_8c_source.html#l00075">Affine()</a>.</p>

</div>
</div>
<hr/><h2>Documentation des définitions de type</h2>
<a class="anchor" id="a4270324e31f01ad8e422e586039f8263"></a><!-- doxytag: member="Sprite.h::Personnage" ref="a4270324e31f01ad8e422e586039f8263" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structs_personnage.html">sPersonnage</a> <a class="el" href="struct_personnage.html">Personnage</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Définition à la ligne <a class="el" href="_sprite_8h_source.html#l00009">9</a> du fichier <a class="el" href="_sprite_8h_source.html">Sprite.h</a>.</p>

</div>
</div>
<a class="anchor" id="a024e9adfdc8e0b14345d217083886e94"></a><!-- doxytag: member="Sprite.h::Sprite" ref="a024e9adfdc8e0b14345d217083886e94" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="struct_ssprite.html">Ssprite</a> <a class="el" href="struct_sprite.html">Sprite</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Définition à la ligne <a class="el" href="_sprite_8h_source.html#l00020">20</a> du fichier <a class="el" href="_sprite_8h_source.html">Sprite.h</a>.</p>

</div>
</div>
<a class="anchor" id="a8e5086042a2f903e0e0b8c4185482cc9"></a><!-- doxytag: member="Sprite.h::Terrain" ref="a8e5086042a2f903e0e0b8c4185482cc9" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structs_terrain.html">sTerrain</a> <a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Définition à la ligne <a class="el" href="_sprite_8h_source.html#l00008">8</a> du fichier <a class="el" href="_sprite_8h_source.html">Sprite.h</a>.</p>

</div>
</div>
<hr/><h2>Documentation des fonctions</h2>
<a class="anchor" id="aef762179d867febc430bff4af2267885"></a><!-- doxytag: member="Sprite.h::Affine" ref="aef762179d867febc430bff4af2267885" args="(Sprite *perso, int vx, int vy)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_sprite_8h.html#aef762179d867febc430bff4af2267885">Affine</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_sprite.html">Sprite</a> *&#160;</td>
          <td class="paramname"><em>perso</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>vx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>vy</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><b> Brief Description </b> Affine la collision.<br/>
 </p>
<p><b> Description </b> Permet d'avoir une meilleur précision pour gérer la collision. <br/>
 </p>
<dl class="params"><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname"><a class="el" href="struct_sprite.html">Sprite</a></td><td>Pointeur sur perso <br/>
 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">entiers</td><td>Les vecteurs vx et vy. <br/>
 </td></tr>
  </table>
  </dd>
</dl>

<p>Définition à la ligne <a class="el" href="_sprite_8c_source.html#l00075">75</a> du fichier <a class="el" href="_sprite_8c_source.html">Sprite.c</a>.</p>

<p>Références <a class="el" href="_sprite_8h_source.html#l00006">ABS</a>, <a class="el" href="_sprite_8c_source.html#l00061">EssaiDeplacement()</a>, et <a class="el" href="_sprite_8h_source.html#l00005">SGN</a>.</p>

<p>Référencé par <a class="el" href="_sprite_8c_source.html#l00090">DeplaceSprite()</a>.</p>

<p><div class="dynheader">
Voici le graphe d'appel pour cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="_sprite_8h_aef762179d867febc430bff4af2267885_cgraph.png" border="0" usemap="#_sprite_8h_aef762179d867febc430bff4af2267885_cgraph" alt=""/></div>
<map name="_sprite_8h_aef762179d867febc430bff4af2267885_cgraph" id="_sprite_8h_aef762179d867febc430bff4af2267885_cgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ad30c5c0a1c1fc518ef81d052d549a154"></a><!-- doxytag: member="Sprite.h::CollisionDecors" ref="ad30c5c0a1c1fc518ef81d052d549a154" args="(Sprite *perso)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_sprite_8h.html#ad30c5c0a1c1fc518ef81d052d549a154">CollisionDecors</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_sprite.html">Sprite</a> *&#160;</td>
          <td class="paramname"><em>perso</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><b> Brief Description </b> Test la collision. <br/>
 </p>
<p><b> Description </b> Test si le personnage ne sort pas du monde.Test si la boite englobante ne rencontre pas un obstacle. <br/>
 </p>
<dl class="params"><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname"><a class="el" href="struct_sprite.html">Sprite</a></td><td>Pointeur sur perso. <br/>
 </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>Retourne un entier. <br/>
 </dd></dl>

<p>Définition à la ligne <a class="el" href="_sprite_8c_source.html#l00037">37</a> du fichier <a class="el" href="_sprite_8c_source.html">Sprite.c</a>.</p>

<p>Références <a class="el" href="_terrain_8h_source.html#l00030">sTerrain::HAUTEUR_TILE</a>, <a class="el" href="_terrain_8h_source.html#l00030">sTerrain::LARGEUR_TILE</a>, <a class="el" href="_terrain_8h_source.html#l00024">sTerrain::nbtiles_hauteur_monde</a>, <a class="el" href="_terrain_8h_source.html#l00024">sTerrain::nbtiles_largeur_monde</a>, <a class="el" href="_terrain_8h_source.html#l00026">sTerrain::schema</a>, et <a class="el" href="_terrain_8h_source.html#l00027">sTerrain::tileplein</a>.</p>

<p>Référencé par <a class="el" href="_sprite_8c_source.html#l00061">EssaiDeplacement()</a>.</p>

</div>
</div>
<a class="anchor" id="ac34d3c8ac9dec7b99115100381c896e6"></a><!-- doxytag: member="Sprite.h::DeplaceSprite" ref="ac34d3c8ac9dec7b99115100381c896e6" args="(Sprite *perso, int vx, int vy)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_sprite_8h.html#ac34d3c8ac9dec7b99115100381c896e6">DeplaceSprite</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_sprite.html">Sprite</a> *&#160;</td>
          <td class="paramname"><em>perso</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>vx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>vy</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><b> Brief Description </b> Test si les déplacements sont possibles. <br/>
 </p>
<p><b> Description </b> Test si les vecteurs vx et vy sont pas trop grands et lance récursivement la fonction DeplaceSprite jusqu'à obtenir la bonne taille.Teste ensuite si le déplacement est possible avec EssaieDeplacement.Enfin,lance Affine pour affiner la collision.<br/>
 </p>
<dl class="params"><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">Map</td><td>Pointeur sur m. <br/>
 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">entiers</td><td>Les coordonnées x,y,w et h. <br/>
 </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>Retourne un entier. <br/>
 </dd></dl>

<p>Définition à la ligne <a class="el" href="_sprite_8c_source.html#l00090">90</a> du fichier <a class="el" href="_sprite_8c_source.html">Sprite.c</a>.</p>

<p>Références <a class="el" href="_sprite_8c_source.html#l00075">Affine()</a>, <a class="el" href="_sprite_8c_source.html#l00090">DeplaceSprite()</a>, et <a class="el" href="_sprite_8c_source.html#l00061">EssaiDeplacement()</a>.</p>

<p>Référencé par <a class="el" href="_sprite_8c_source.html#l00090">DeplaceSprite()</a>, et <a class="el" href="_sdl_jeu_8c_source.html#l00153">sdljeuBoucle()</a>.</p>

<p><div class="dynheader">
Voici le graphe d'appel pour cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="_sprite_8h_ac34d3c8ac9dec7b99115100381c896e6_cgraph.png" border="0" usemap="#_sprite_8h_ac34d3c8ac9dec7b99115100381c896e6_cgraph" alt=""/></div>
<map name="_sprite_8h_ac34d3c8ac9dec7b99115100381c896e6_cgraph" id="_sprite_8h_ac34d3c8ac9dec7b99115100381c896e6_cgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a75aa6342b3d5192493d1daef6133be11"></a><!-- doxytag: member="Sprite.h::EssaiDeplacement" ref="a75aa6342b3d5192493d1daef6133be11" args="(Sprite *perso, int vx, int vy)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_sprite_8h.html#a75aa6342b3d5192493d1daef6133be11">EssaiDeplacement</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_sprite.html">Sprite</a> *&#160;</td>
          <td class="paramname"><em>perso</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>vx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>vy</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><b> Brief Description </b> Test si un déplacement est possible. <br/>
 </p>
<dl class="params"><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname"><a class="el" href="struct_sprite.html">Sprite</a></td><td>Pointeur sur perso. <br/>
 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">entiers</td><td>Les vecteurs vx et vy. <br/>
 </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>Retourne un entier. <br/>
 </dd></dl>

<p>Définition à la ligne <a class="el" href="_sprite_8c_source.html#l00061">61</a> du fichier <a class="el" href="_sprite_8c_source.html">Sprite.c</a>.</p>

<p>Références <a class="el" href="_sprite_8c_source.html#l00037">CollisionDecors()</a>.</p>

<p>Référencé par <a class="el" href="_sprite_8c_source.html#l00075">Affine()</a>, <a class="el" href="_sprite_8c_source.html#l00090">DeplaceSprite()</a>, et <a class="el" href="_sprite_8c_source.html#l00103">persMort()</a>.</p>

<p><div class="dynheader">
Voici le graphe d'appel pour cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="_sprite_8h_a75aa6342b3d5192493d1daef6133be11_cgraph.png" border="0" usemap="#_sprite_8h_a75aa6342b3d5192493d1daef6133be11_cgraph" alt=""/></div>
<map name="_sprite_8h_a75aa6342b3d5192493d1daef6133be11_cgraph" id="_sprite_8h_a75aa6342b3d5192493d1daef6133be11_cgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a4b649c7fe373641fefdc8c50f1170c57"></a><!-- doxytag: member="Sprite.h::InitialiserSprite" ref="a4b649c7fe373641fefdc8c50f1170c57" args="(Sprite *pSprite, int x, int y, int w, int h, Terrain *pTer)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_sprite.html">Sprite</a>* <a class="el" href="_sprite_8h.html#a4b649c7fe373641fefdc8c50f1170c57">InitialiserSprite</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_sprite.html">Sprite</a> *&#160;</td>
          <td class="paramname"><em>pSprite</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *&#160;</td>
          <td class="paramname"><em>pTer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><b> Brief Description </b> Initialise un sprite. <br/>
 </p>
<p><b> Description </b> Alloue de la mémoire dans le tas,et initialise le sprite sp avec x,y,w,h et m. <br/>
 </p>
<dl class="params"><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">Map</td><td>Pointeur sur m. <br/>
 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">entiers</td><td>Les coordonnées x,y,w et h. <br/>
 </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>Retourne un <a class="el" href="struct_sprite.html">Sprite</a>. <br/>
 </dd></dl>

<p>Définition à la ligne <a class="el" href="_sprite_8c_source.html#l00004">4</a> du fichier <a class="el" href="_sprite_8c_source.html">Sprite.c</a>.</p>

<p>Référencé par <a class="el" href="_sdl_jeu_8c_source.html#l00138">sdlInit()</a>.</p>

</div>
</div>
<a class="anchor" id="ac89376e6e2a55b15702b26eaac32a676"></a><!-- doxytag: member="Sprite.h::LibereSprite" ref="ac89376e6e2a55b15702b26eaac32a676" args="(Sprite *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_sprite_8h.html#ac89376e6e2a55b15702b26eaac32a676">LibereSprite</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_sprite.html">Sprite</a> *&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><b> Brief Description </b> Libere la mémoire allouée.<br/>
 </p>
<p><b> Description </b> Libère la mémoire allouée dans le tas et retourne 0. <br/>
 </p>
<dl class="params"><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname"><a class="el" href="struct_sprite.html">Sprite</a></td><td>Pointeur sur un <a class="el" href="struct_sprite.html">Sprite</a> <br/>
 </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>Retourne 0. <br/>
 </dd></dl>

<p>Définition à la ligne <a class="el" href="_sprite_8c_source.html#l00031">31</a> du fichier <a class="el" href="_sprite_8c_source.html">Sprite.c</a>.</p>

</div>
</div>
<a class="anchor" id="a519d35f4b42cc5764208777e7838e6ed"></a><!-- doxytag: member="Sprite.h::persMort" ref="a519d35f4b42cc5764208777e7838e6ed" args="(Sprite *perso, int vx, int vy)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_sprite_8h.html#a519d35f4b42cc5764208777e7838e6ed">persMort</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_sprite.html">Sprite</a> *&#160;</td>
          <td class="paramname"><em>perso</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>vx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>vy</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><b> Brief Description </b> Test si le personnage est mort(fin de partie). <br/>
 </p>
<dl class="params"><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname"><a class="el" href="struct_sprite.html">Sprite</a></td><td>Pointeur sur perso. <br/>
 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">Entier</td><td>Vecteur vy et vyS. <br/>
 </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>Retourne un entier. <br/>
 </dd></dl>

<p>Définition à la ligne <a class="el" href="_sprite_8c_source.html#l00103">103</a> du fichier <a class="el" href="_sprite_8c_source.html">Sprite.c</a>.</p>

<p>Références <a class="el" href="_sprite_8c_source.html#l00061">EssaiDeplacement()</a>.</p>

<p>Référencé par <a class="el" href="_sdl_jeu_8c_source.html#l00153">sdljeuBoucle()</a>.</p>

<p><div class="dynheader">
Voici le graphe d'appel pour cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="_sprite_8h_a519d35f4b42cc5764208777e7838e6ed_cgraph.png" border="0" usemap="#_sprite_8h_a519d35f4b42cc5764208777e7838e6ed_cgraph" alt=""/></div>
<map name="_sprite_8h_a519d35f4b42cc5764208777e7838e6ed_cgraph" id="_sprite_8h_a519d35f4b42cc5764208777e7838e6ed_cgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="affba9d86f8ae9fe08348877045147d9f"></a><!-- doxytag: member="Sprite.h::UpdateScroll" ref="affba9d86f8ae9fe08348877045147d9f" args="(Terrain *pTer, Sprite *pSprite)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_sprite_8h.html#affba9d86f8ae9fe08348877045147d9f">UpdateScroll</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *&#160;</td>
          <td class="paramname"><em>pTer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_sprite.html">Sprite</a> *&#160;</td>
          <td class="paramname"><em>pSprite</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><b> Brief Description </b> Met à jour le scrolling. <br/>
 </p>
<p><b> Description </b> Permet de mettre à jour le scrolling sur le personnage. <br/>
 </p>
<dl class="params"><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname"><a class="el" href="struct_sprite.html">Sprite</a></td><td>Pointeur sur pSprite. <br/>
 </td></tr>
    <tr><td class="paramdir">[in,out]</td><td class="paramname">Terrain</td><td>Pointeur sur pTer. <br/>
 </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>Retourne un entier. <br/>
 </dd></dl>

<p>Définition à la ligne <a class="el" href="_sprite_8c_source.html#l00016">16</a> du fichier <a class="el" href="_sprite_8c_source.html">Sprite.c</a>.</p>

<p>Références <a class="el" href="_terrain_8h_source.html#l00032">sTerrain::focusSprite</a>, <a class="el" href="_terrain_8h_source.html#l00031">sTerrain::focusw</a>, <a class="el" href="_terrain_8h_source.html#l00031">sTerrain::focusx</a>, et <a class="el" href="_terrain_8h_source.html#l00025">sTerrain::xscroll</a>.</p>

<p>Référencé par <a class="el" href="_sdl_jeu_8c_source.html#l00054">AfficherMapSDL()</a>.</p>

</div>
</div>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_sprite_8h.html">Sprite.h</a>      </li>

    <li class="footer">Généré le Lundi Décembre 17 2012 01:09:41 pour Projet Jetpack par
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
